FROM openjdk:8-alpine
MAINTAINER mock
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir /usr/deploy
COPY ./deploy/target/deploy.jar  /usr/deploy
CMD ["nohup","java","-Xmx256m","-jar","/usr/deploy/deploy.jar","--spring.profiles.active=prod","&"]
